KEY_FILE=../libanculus-sharp.snk
ASSEMBLY_COMPILER_COMMAND = gmcs
ASSEMBLY_COMPILER_FLAGS = -keyfile:$(KEY_FILE) -noconfig -codepage:utf8 -warn:4 -debug -d:DEBUG
ASSEMBLY = $(ANCULUS_BUILD_DIR)/@ANCULUS_GUI_LIB@
ASSEMBLY_NAME=Anculus.Gui
COMPILE_TARGET = library
PC_FILES_IN = anculus-gui.pc.in

REFERENCES =  \
	$(GLIB_SHARP_LIBS) \
	$(GTK_SHARP_LIBS) \
	-r:../../build/Anculus.Core.dll \
	-r:System \
	-r:System.Windows.Forms

RESOURCES = 
EXTRAS = 
DATA_FILES = 

FILES =  \
	Dispatch/AbstractDispatcher.cs \
	Dispatch/Dispatch.cs \
	Dispatch/GtkGuiDispatcher.cs \
	Dispatch/IDispatchContainer.cs \
	Dispatch/IDispatcher.cs \
	Dispatch/ObjectDispatchContainer.cs \
	Dispatch/VoidDispatchContainer.cs \
	Dispatch/WinformsGuiDispatcher.cs  

GENERATED_FILES = AssemblyInfo.cs

all: $(ASSEMBLY)

$(ASSEMBLY) $(ASSEMBLY).mdb: $(build_sources) $(build_resources) $(build_datafiles) 
	mkdir -p $(dir $(ASSEMBLY))		
	$(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$@ -target:$(COMPILE_TARGET) $(build_sources) $(build_resources_embed) $(build_references_ref)

install-data-local:
	echo "$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS)";  \
	$(GACUTIL) /i $(ASSEMBLY) /f $(GACUTIL_FLAGS) || exit 1;

uninstall-local:
	echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
	$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1;

include $(top_srcdir)/Makefile.include
